<header class="post-header">
    <h1 class="post-title">
        <?php echo e($post->title); ?>

    </h1><!-- .post-title -->

    <a href="/category/<?php echo e($post->category->slug); ?>/<?php echo e($post->sub_category->slug); ?>"
       class="category bgcolor3">
        <?php echo e($post->sub_category->title); ?>

    </a>

    <p class="simple-share">
        <span>by <a href="/author/<?php echo e($post->author->slug); ?>"><b><?php echo e($post->author->name); ?></b></a></span>
                            <span><span class="article-date"><i
                                            class="fa fa-clock-o"></i> <?php echo e($post->created_at->diffForHumans()); ?></span></span>
        <span><i class="fa fa-eye"></i> <?php echo e($post->views); ?> views</span>

        <?php if($settings_comments->fb_comment_count == 1): ?>
            <?php if($settings_comments->comment_system == \App\Posts::COMMENT_FACEBOOK): ?>
                <span class="comments-count">
                                        <i class="fb-comments-count" data-href="<?php echo e(URL::full()); ?>"></i>comments
                                        </span>
            <?php endif; ?>
        <?php endif; ?>

        <?php if($settings_comments->disqus_comment_count == 1): ?>
            <?php if($settings_comments->comment_system == \App\Posts::COMMENT_DISQUS): ?>
                <a class="comments-count" href="<?php echo e(URL::full()); ?>#disqus_thread">0</a>
            <?php endif; ?>
        <?php endif; ?>

    </p>

    <?php if(strlen($post->featured_image) >0 && $post->show_featured_image_in_post == 1): ?>
        <figure class="image-overlay">
            <img src="<?php echo e($post->featured_image); ?>" alt="<?php echo e($post->title); ?>">
        </figure>
    <?php endif; ?>

    <?php if($post->render_type == \App\Posts::RENDER_TYPE_VIDEO): ?>
        <figure class="image-overlay">
            <?php echo $post->video_embed_code; ?>

        </figure>
    <?php endif; ?>

    <?php if($post->render_type == \App\Posts::RENDER_TYPE_GALLERY && isset($post->gallery) && sizeof($post->gallery)>0 ): ?>

        <figure class="image-overlay">
            <div class="flexslider slider-one">
                <div class="featured-slider">

                    <?php foreach($post->gallery as $img): ?>
                        <div class="slider-item">
                            <div class="row">
                                <div class="col-md-12">
                                    <img src="<?php echo e($img->image); ?>" alt="<?php echo e($post->title); ?>">
                                </div>
                            </div>
                        </div>
                    <?php endforeach; ?>

                </div>
            </div>
        </figure>
    <?php endif; ?>
</header>
